/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-06-29
 * Time: 22:56
 */
class Date{
    public int year;
    public int month;
    public int day;

    public Date(){
        this.year = 2020;
        this.month = 5;
        this.day = 2;
    }
    public Date(int y,int m,int d){
        this.year = y;
        this. month = m;
        this.day = d;
    }

    public void date(){
        System.out.println(year+"年"+month+"月"+day+"日");
    }
}
public class Test4 {
    public static void main(String[] args) {
        Date date1 = new Date(1998,2,26);
        Date date2 = new Date(1995,7,29);
        Date date3 = new Date(1997,8,26);
        Date date4 = new Date();
        date4.year = 2012;
        date4.month = 6;
        date4.day = 15;
        Date date5 = new Date();
        date5.date();
        date4.date();
        date1.date();
        date2.date();
        date3.date();
    }
}
